﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.person_info
{
    public partial class group_delete : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int groupId = (Request.QueryString["group_id"] != null) ? int.Parse(Request.QueryString["group_id"].ToString()) : 0;
            new GroupDao().Delete(base.Conn, base.User.Identity.Name, groupId);
            base.CloseConn();
            Response.Redirect("group.aspx");
        } 

    }
}
